package com.focusai.efairy.ui.adapter.warn;

import android.app.Activity;

import com.focusai.efairy.R;
import com.focusai.efairy.model.response.AlarmNodoResponse;
import com.focusai.efairy.ui.adapter.base.BaseRecyclerAdapter;
import com.focusai.efairy.ui.adapter.base.BaseRecyclerViewHolder;

/**
 * Created by luo_guangwen on 2017/9/12.
 */

public class AlarmNodoAdapter extends BaseRecyclerAdapter<AlarmNodoResponse.AlarmDev> {

    public AlarmNodoAdapter(Activity context) {
        super(context);
    }

    @Override
    protected int getItemLayoutId() {
        return R.layout.item_alarm_nodo;
    }

    @Override
    protected void onBindBaseRecyclerViewHolder(BaseRecyclerViewHolder holder, final int position) {
        AlarmNodoResponse.AlarmDev item = mList.get(position);
        holder.setText(R.id.text_title, item.efairydevice_name);
        holder.setText(R.id.text_value, item.unhandle_number + "");
    }

}
